﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CreateEntity
{
    public partial class DataBaseType : Form
    {
        DataBaseTree dbTree;
        public DataBaseType(DataBaseTree dbTree)
        {
            this.dbTree = dbTree;
            InitializeComponent();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btnOk_Click(object sender, EventArgs e)
        { 
            this.Hide();
            if (this.rdbAccess.Checked)
            {
                AddAccess access = new AddAccess(dbTree);//添加Access连接
                access.ShowDialog();
            }
            else
            {
                AddSQL sql = new AddSQL(dbTree);//添加SQL连接 
                sql.ShowDialog();
            }           
        }        
    }
}
